We chain up on _finish() to drop the grab and destroy the switcher
popup but we should activate the target window first because dropping
the grab results in the previously focused windows getting a focus in
event immediately followed by the focus out event from the target
window activation which we can easily avoid.
https://bugzilla.gnome.org/show_bug.cgi?id=696259
},
_finish : function(timestamp) {
- this.parent();
-
let appIcon = this._items[this._selectedIndex];
let window = this._currentWindow > 0 ? this._currentWindow : 0;
appIcon.app.activate_window(appIcon.cachedWindows[window], timestamp);
+
+ this.parent();
},
_onDestroy : function() {
},
_finish: function() {
- this.parent();
-
Main.activateWindow(this._items[this._selectedIndex].window);
+
+ this.parent();
}
});